Free Grammars and Languages
نویسندگان
چکیده
Floyd’s Operator Precedence languages (OPLs) were originally introduced to support deterministic parsing of programming languages [11]; then, interest in them decayed for several decades, probably due to the advent of more expressive grammars, such as LR ones which also allow for efficient deterministic parsing. Recently, however, we renewed our interest in this family of languages on the basis of two major properties thereof: 1) their “locality property”, i.e., the fact that partial strings can be parsed independently of the context in which they occur within a whole string; this enables more effective parallel and incremental parsing techniques than for other deterministic languages [3,4]; and 2) the fact that, to the best of our knowledge, OPLs are the largest family closed w.r.t. Boolean operations, concatenation, Kleene * and other classical operations [7]; furthermore they are recognized by a peculiar automata family [12] and are characterized in terms of classical monadic second order (MSO) logic [13]. This latter property entitles OPLs as a best candidate for extending the application of powerful verification techniques such as model-checking far beyond the original class of regular languages and even other recent families such as Visibly Pushdown Languages (VPLs) [2] which are strictly contained within OPLs too. In this paper we introduce (more precisely, resume) a subclass of OPLs, namely free languages (FrLs) which were defined in [9,8] with the main motivation of grammar inference. FrLs constitute a kind of algebra within the structure defined by any given operator precedence matrix (OPM) [8]. Besides briefly outlining a “specialized” version of automata explicitly tailored for FrLs, we offer a new logic characterization in terms of first-order logic, as opposed to the traditional but more complex one in terms of MSO logic. FrLs however, lose some closure properties and have some “distinguishing” limits in terms of generative power, which nevertheless covers various relevant and heterogeneous cases: thus, they better lend themselves to act as “basic skeleton” for describing the structural part of a language to be complemented either with a suitable intersection with “regular control” or with additional restrictions formalized in terms of first-order properties conjuncted with the original ones associated with a grammar (FrG), somewhat in the spirit of the classical Chomsky-Schutzenberger characterization of CF languages.
منابع مشابه
Alternating Regular Tree Grammars in the Framework of Lattice-Valued Logic
In this paper, two different ways of introducing alternation for lattice-valued (referred to as {L}valued) regular tree grammars and {L}valued top-down tree automata are compared. One is the way which defines the alternating regular tree grammar, i.e., alternation is governed by the non-terminals of the grammar and the other is the way which combines state with alternation. The first way is ta...
متن کاملS4 enriched multimodal categorial grammars are context-free
Bar-Hillel et al. [1] prove that applicative categorial grammars weakly recognize the context-free languages. Buszkowski [2] proves that grammars based on the product-free fragment of the non-associative Lambek calculus NL recognize exactly the contextfree languages. Kandulski [7] furthers this result by proving that grammars based on NL also recognize exactly the context-free languages. Jäger ...
متن کاملConjunctive Grammars
This paper introduces a class of formal grammars made up by augmenting the formalism of context-free grammars with an explicit set-theoretic intersection operation. It is shown that conjunctive grammars can generate some important non-contextfree language constructs, including those not in the intersection closure of context-free languages, and that they can provide very succinct descriptions o...
متن کاملTwo-dimensional Context-free Grammars
We present a generalization of context-free grammars to twodimensions and define picture languages generated by these grammars. We examine some properties of the formed class and we describe how these languages can be recognized by two-dimensional forgetting au-
متن کاملConjunctive Grammars 1
This paper introduces a class of formal grammars made up by augmenting the formalism of context-free grammars with an explicit set-theoretic intersection operation. It is shown that conjunctive grammars can generate some important non-context-free language constructs, including those not in the intersection closure of context-free languages, and that they can provide very succinct descriptions ...
متن کاملCombinatory Categorial Grammars: Generative Power and Relationship to Linear Context-Free Rewriting Systems
Recent results have established that there is a family of languages that is exactly the class of languages generated by three independently developed grammar formalisms: Tree Adjoining Grammm~, Head Grammars, and Linear Indexed Grammars. In this paper we show that Combinatory Categorial Grammars also generates the same class of languages. We discuss the slruclm'al descriptions produced by Combi...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2013